package com.fzkj.shejimoshi.adapter3;

import com.fzkj.shejimoshi.adapter3.advancemedia.AbstractAdvanceMediaPlayer;
import com.fzkj.shejimoshi.adapter3.advancemedia.Mp4Player;
import com.fzkj.shejimoshi.adapter3.media.AudioPlayer;
import com.fzkj.shejimoshi.adapter3.media.MediaPlayer;

/**
 * @DESCRIPTION: TODO 测试适配器模式
 * @AUTHOR: AnotherOne
 * @DATE: 2021/8/12 16:33
 */
public class Test {

    public static void main(String[] args) {
        AbstractAdvanceMediaPlayer adapter = new MediaAdapter(new AudioPlayer());
        adapter.playMp4("MP4");
        MediaPlayer player = new MediaAdapter(new Mp4Player());
        player.mp3("mp3");
    }

}
